package com.lsj.controller;

import com.lsj.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@RequestMapping("/user")
public class UserController
{
    @RequestMapping("/getUser")
    public User getUser(String username,String password){
        User  user = new User();
        user.setId(UUID.randomUUID().toString().replace("-",""));
        user.setUsername(username);
        user.setPassword(password);
        user.setName("城市");
        return user;
    }
}
